cmake_minimum_required(VERSION 3.0)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "D:/code/gitee/cmake_tutorial/f_package2/mathlib/install/lib/cmake/mathlib")
set(mathlib_DIR "D:/code/gitee/cmake_tutorial/f_package2/mathlib/install/lib/cmake/mathlib")
find_package(mathlib REQUIRED)

IF(mathlib_FOUND)
    message("mathlib founded")
    include_directories(${mathlib_INCLUDES})
    link_directories(${mathlib_LIBRARIES})
ENDIF()

add_executable(proj src.cpp)
target_link_libraries(proj mathlib)